3.4.39 \(\int x^{-1+n-p (1+q)} (a x^n+b x^p)^q \, dx\)

Optimal. Leaf size=39 \[ \frac {x^{-p (q+1)} \left (a x^n+b x^p\right )^{q+1}}{a (q+1) (n-p)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2014} \begin {gather*} \frac {x^{-p (q+1)} \left (a x^n+b x^p\right )^{q+1}}{a (q+1) (n-p)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q,x]

[Out]

(a*x^n + b*x^p)^(1 + q)/(a*(n - p)*(1 + q)*x^(p*(1 + q)))

Rule 2014

Int[((c_.)*(x_))^(m_.)*((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> -Simp[(c^(j - 1)*(c*x)^(m - j
+ 1)*(a*x^j + b*x^n)^(p + 1))/(a*(n - j)*(p + 1)), x] /; FreeQ[{a, b, c, j, m, n, p}, x] &&  !IntegerQ[p] && N
eQ[n, j] && EqQ[m + n*p + n - j + 1, 0] && (IntegerQ[j] || GtQ[c, 0])

Rubi steps

\begin {align*} \int x^{-1+n-p (1+q)} \left (a x^n+b x^p\right )^q \, dx &=\frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (n-p) (1+q)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 40, normalized size = 1.03 \begin {gather*} -\frac {x^{-p (q+1)} \left (a x^n+b x^p\right )^{q+1}}{a (q+1) (p-n)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q,x]

[Out]

-((a*x^n + b*x^p)^(1 + q)/(a*(-n + p)*(1 + q)*x^(p*(1 + q))))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.14, size = 0, normalized size = 0.00 \begin {gather*} \int x^{-1+n-p (1+q)} \left (a x^n+b x^p\right )^q \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q,x]

[Out]

Defer[IntegrateAlgebraic][x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q, x]

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 76, normalized size = 1.95 \begin {gather*} \frac {{\left (a x x^{-p q + n - p - 1} x^{n} + b x x^{-p q + n - p - 1} x^{p}\right )} {\left (a x^{n} + b x^{p}\right )}^{q}}{{\left (a n - a p + {\left (a n - a p\right )} q\right )} x^{n}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="fricas")

[Out]

(a*x*x^(-p*q + n - p - 1)*x^n + b*x*x^(-p*q + n - p - 1)*x^p)*(a*x^n + b*x^p)^q/((a*n - a*p + (a*n - a*p)*q)*x
^n)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int {\left (a x^{n} + b x^{p}\right )}^{q} x^{-p {\left (q + 1\right )} + n - 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="giac")

[Out]

integrate((a*x^n + b*x^p)^q*x^(-p*(q + 1) + n - 1), x)

________________________________________________________________________________________

maple [F]  time = 1.27, size = 0, normalized size = 0.00 \begin {gather*} \int x^{n -\left (q +1\right ) p -1} \left (a \,x^{n}+b \,x^{p}\right )^{q}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x)

[Out]

int(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int {\left (a x^{n} + b x^{p}\right )}^{q} x^{-p {\left (q + 1\right )} + n - 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="maxima")

[Out]

integrate((a*x^n + b*x^p)^q*x^(-p*(q + 1) + n - 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int x^{n-p\,\left (q+1\right )-1}\,{\left (a\,x^n+b\,x^p\right )}^q \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - p*(q + 1) - 1)*(a*x^n + b*x^p)^q,x)

[Out]

int(x^(n - p*(q + 1) - 1)*(a*x^n + b*x^p)^q, x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n-p*(1+q))*(a*x**n+b*x**p)**q,x)

[Out]

Timed out

________________________________________________________________________________________